package cn.e2win.biz.sys;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.e2win.base.json.vo.Pager;
import cn.e2win.biz.annotation.PageParam;
import cn.e2win.biz.base.BaseController;
import cn.e2win.biz.base.BaseService;



@Controller
@Scope("request")
@RequestMapping("/logs")
public class LogsController extends BaseController {

	@Autowired
	private LogsService logsService;
	
	@Override
	public BaseService initService() {
		return logsService;
	}

	//需方查询用
	@RequestMapping("logsPager")
	public String logsPager(HttpServletRequest request,
			@PageParam Pager pager, ModelMap modelMap) {
		try {
			
			logsService.pagerLogs(pager);
			modelMap.put("pager", pager);
			return "sys/logs/Pager";
		} catch (Exception e) {
			e.printStackTrace();
			logger.error(e);
			return "msg/common/fail";
		}
	}
	
	
	
	
	
}